//
//  ChangePhoneSuccessViewController.m
//  NewPro
//
//  Created by RYX on 2019/4/26.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "ChangePhoneSuccessViewController.h"
#import "SettingViewController.h"

@interface ChangePhoneSuccessViewController ()

@end

@implementation ChangePhoneSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = UIColor.whiteColor;
    [self setNavBarWithTitle:@"验证手机号码"];
}

- (IBAction)onSureBtn:(UIButton *)sender {
    
    [self back];
}

- (void)back{
    
    UINavigationController *nav = self.navigationController;
    
    NSMutableArray *viewControllers = [[NSMutableArray alloc]init];
    
    for (UIViewController *vc in [nav viewControllers]) {
        
        [viewControllers addObject:vc];
        
        if ([vc isKindOfClass:[SettingViewController class]]) {
            
            break;
        }
    }
    
    [nav setViewControllers:viewControllers animated:YES];
    
}
@end
